<?php $this->load->view('public/page_header');?>
<div id="pop" style="display:none">
    <div class="content" style="width:180px;height: 100px;background:#FFF;padding:4px 6px 1px 3px" >
      <div style="  width:180px;height: 25px; padding:1px 2px 0 1px;color: #fff;background: #65a10b;">修改<i style="float:right;cursor:pointer" id="iclose">关闭</i></div>
         <div style="height: 25px;padding-top:10px; ">
             <input name="note" id="note" value="" style="width:100%"/>
         </div>
          <button class="btn" style="float:right;margin-top:11px;" id="submit_button" type="submit">确定</button>
     </div>
</div>

<div class="wrap J_check_wrap">
     <div class="h_a">功能说明</div>
    <div class="prompt_text">
    先登录淘宝,再访问该页面,目前仅支持修改,待付款0|待发货0|待收货1|待评价1,后面的数字,请点击数字再操作。
    </div>
</div>
 <iframe  id="iframe_default" src="http://buyer.trade.taobao.com/trade/itemlist/list_bought_items.htm" style="height: 700px; width: 100%;display:none"  frameborder="0" scrolling="auto">
 </iframe>
<script type="text/javascript">

    var index_of ;
//iframe 加载事件
var iframe_default = document.getElementById('iframe_default');
$(iframe_default.contentWindow.document).ready(function() {
    $('#loading').hide();
    setTimeout(function () {
        $(iframe_default).show();
    }, 3000);

});

         window.onload = function(){

             var $body = $("iframe").contents().find('body') ;

             $body.find('a').attr('href','javascript:;');
             $body.find('#J_navbar').find('em').click(function(){

                index_of = $(this).closest('li').index()-1;
                 var obj = $(this);
                var vtop = $(this).offset().top;
                var vleft = $(this).offset().left;
                $('#pop').css({'display':'block','position':'absolute','left':vleft,'top':vtop});
                $('#submit_button').click(function(){

                    var valu = $('#note').val();

                    if(valu.length>0)
                    {
                        $body.find('#J_navbar').find('em:eq('+index_of+')').empty().text(valu);
                     }

                    $('#pop').hide();
                    $('#note').val('');

                })
            })


            $('#iclose').click(function(){

                $(this).closest('.content').hide();

            })


        }
</script>
<?php $this->load->view('public/page_footer');?>